Cannot be used for ". $file_extension ." files!"); break; default: $ctype="application/force-download"; } // echo $_SERVER['DOCUMENT_ROOT'].'/physician_portal/pp_files' . $file_row['PATH']; // exit; // header("Content-Type: application/force-download\n"); header("Content-Type: $ctype"); header("Content-Disposition: attachment; filename=\"" . $file_row['FILE_NAME'] . "\"\n"); header("Content-Length: ".$file_row['BYTES']); readfile('http://iridex.com/physician_portal/pp_files' . $file_row['PATH']); exit; ?>